package org.rayken.trix.commons.card;

public enum Suit {
	// To correctly print unicode characters in eclipse:
	// set your Eclipse > Preferences > General > Workspace > Text file encoding to UTF-8.
    CLUBS(1, "C", "\u2663"),
    DIAMONDS(2, "D", "\u2666"),
    HEARTS(3, "H", "\u2665"),
    SPADES(4, "S", "\u2660");

    private int suit;
    private String name;
    private String symbol;

    private Suit(int suit, String name, String symbol) {
		this.suit = suit;
		this.name = name;
		this.symbol = symbol;
    }
    
    public int getSuit() {
		return suit;
	}

	public String getName() {
		return name;
	}
	
	public String getLongName(){
		return getName() + name().substring(1).toLowerCase();
	}
	

	public String getSymbol() {
		return symbol;
	}

	@Override
    public String toString() {
    	return this.symbol;
    }

}
